package com.hwd.gmall.cart.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * 购物车服务模块的feign接口
 *
 * @author 黄伟东/Victor
 * @date 2022/5/7 20:19
 */
@FeignClient(name = "service-cart", path = "/api/cart", contextId = "orderFeignClient")
public interface CartFeignClient {

    /**
     * 查询当前用户订单确认页的购物车数据
     *
     * @return java.util.Map<java.lang.String, java.lang.Object>
     */
    @GetMapping(value = "/getOrderConfirmedCartInfo")
    public Map<String, Object> getOrderConfirmedCartInfo();

    /**
     * 新增购物车后，清空购物车
     *
     * @return java.lang.Boolean
     */
    @GetMapping(value = "/removeCartInfoAfterAddCartInfo")
    public Boolean removeCartInfoAfterAddCartInfo();
}
